const fs  =require('fs')
const zlib = require('zlib')

const gzip = zlib.createGzip()
const readStream = fs.createReadStream('./logs.txt')
const writeStram = fs.createWriteStream('./logs.gzip')

readStream.pipe(gzip).pipe(writeStram)
